inspector: Redo the controllers page
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 Jan 2021 23:51:01 +0000 (18:51 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Jan 2021 15:19:18 +0000 (10:19 -0500)
Use a column view, and only show the widgets own
controllers.

gtk/inspector/controllers.c

index 5f0fb9224223c2a36a8335bf22f67beb0085ecf2..08144f1e10a4e0bdb310ea935d48443fd14a9d36 100644 (file)
 #include "gtkdropdown.h"
 #include "gtkbox.h"
 #include "gtkcustomsorter.h"
-#include "gtkflattenlistmodel.h"
-#include "gtkframe.h"
 #include "gtkgesture.h"
 #include "gtklabel.h"
-#include "gtklistbox.h"
-#include "gtkmaplistmodel.h"
-#include "gtkpropertylookuplistmodelprivate.h"
 #include "gtkscrolledwindow.h"
 #include "gtksortlistmodel.h"
 #include "gtkstack.h"
@@ -277,6 +272,7 @@ gtk_inspector_controllers_set_object (GtkInspectorControllers *self,
 
   if (!GTK_IS_WIDGET (object))
     {
+      gtk_column_view_set_model (GTK_COLUMN_VIEW (self->view), NULL);
       g_object_set (page, "visible", FALSE, NULL);
       return;
     }